@echo off

set p=E:\GoOut\win\cnad

rd /s /q %p%\html
rd /s /q %p%\db
rd /s /q %p%\config

for /f %%a in ('wmic os get localdatetime ^| find "."') do set datetime=%%a
set "datetime=%datetime:~0,4%%datetime:~4,2%%datetime:~6,2%.%datetime:~8,4%"
echo var curVersion='%datetime%';  > ./html/version.js

Xcopy html %p%\html\ /e /y
Xcopy db %p%\db\ /e /y
Xcopy config %p%\config\ /e /y
@REM copy web.command %p%\web.command /y
@REM copy web %p%\web /y
@REM copy web.exe %p%\web.exe /y






